CC	=	gcc
FLAGS	=		-O2 -Wall -Winline
LDFLAGS =		-O2 -Wall -Winline
#~ FLAGS	=	-ggdb
#~ LDFLAGS	=	-ggdb
INCS	=	-I. -I/usr/include
LIBS	=

OBJSQ2A	=	Image.o utils.o q2a.o
#~ OBJSQ2B	=	Image.o utils.o q2b.o
#~ OBJSQ2C	=	Image.o utils.o q2c.o
#~ OBJSQ2D	=	Image.o utils.o q2d.o

default:	q2a
#~ q2b q2c q2d

%.o:	%.c
	$(CC) $(FLAGS) $(INCS) -o $@ -c $<

q2a:	$(OBJSQ2A)
	$(CC) -o $@ $(OBJSQ2A) $(LDFLAGS) $(LIBS)

#~ q2b:	$(OBJSQ2B)
	#~ $(CC) -o $@ $(OBJSQ2B) $(LDFLAGS) $(LIBS)

#~ q2c:	$(OBJSQ2C)
	#~ $(CC) -o $@ $(OBJSQ2C) $(LDFLAGS) $(LIBS)
	
#~ q2d:	$(OBJSQ2D)
	#~ $(CC) -o $@ $(OBJSQ2D) $(LDFLAGS) $(LIBS)

clean: 
	rm -rf *.o  *~ q2a

